//
//  ViewController.m
//  诗韵
//
//  Created by Song on 2017/12/25.
//  Copyright © 2017年 Song. All rights reserved.
//

// 测试用

#import "ViewController.h"
//#import "firstNavViewController.h"
#import "LoginViewController.h"
#import "RegisterViewController.h"

@interface ViewController ()
- (IBAction)jump2login:(id)sender;
- (IBAction)jump2register:(id)sender;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    [self.navigationItem setHidesBackButton:YES];
//    [self.navigationController.navigationItem setHidesBackButton:YES];
//    [self.navigationController.navigationBar.backItem setHidesBackButton:YES];
//
//    self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStyleDone target:nil action:nil];
//    self.navigationItem.backBarButtonItem.tintColor = [UIColor darkGrayColor];
    
//    UIBarButtonItem *backBtn = [[UIBarButtonItem alloc] init];
//    backBtn.title = @"返回";
//    backBtn.image = [UIImage imageNamed:@"back"];
//    [self.navigationController.navigationBar.backItem setBackBarButtonItem:backBtn];
   
}



// 跳到app
- (IBAction)jump2login:(id)sender {
    NSLog(@"jump 2 login");
    
    LoginViewController *loginVc = [[LoginViewController alloc] init];
    [self.navigationController pushViewController:loginVc animated:YES];
    
    NSLog(@"jump 2 login");
}

- (IBAction)jump2register:(id)sender {
    RegisterViewController *registerVc = [[RegisterViewController alloc] init];
    [self.navigationController pushViewController:registerVc animated:YES];
    
}
@end
